package com.dg.common;

public enum ResponseCode {

	ERROR(0,"ERROR"),
    SUCCESS(1,"SUCCESS"),
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT"),
    AUTHC(3,"权限不够，无法访问"),
	CODE_FREQUENCY(5,"发送验证码过于频繁，请稍后再试"),
	MESSAGE_FREQUENCY(6,"留言过于频繁，请稍后再试"),
	NEED_LOGIN(10,"你还没有登录，请前往登录！");
	
    private  int code;
    private  String desc;

    ResponseCode(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    
    public String getDesc(){
        return desc;
    }
    

}
